import { getCapital } from '../../api/Asset'

const Asset = {
  actions: {
    getCapital ({ commit }, userid) {
      return new Promise((resolve, reject) => {
        getCapital(userid).then(response => {
          resolve(response)
        }).catch(error => {
          reject(error)
        })
      })
    }
  }
}
export default Asset
